package com.atm.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * <p>
 * </p>
 *
 * @author lsy
 * @since 2017-12-21
 */
@TableName("zy_tea")
public class ZyTea extends Model<ZyTea> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 冲泡方式(盖碗冲泡、紫砂壶冲泡、玻璃杯冲泡、煮茶、冷泡)
     */
    private Integer brewsId;
    /**
     * 茶叶编码
     */
    private String code;
    /**
     * 茶叶名称
     */
    private String name;
    /**
     * 种类（黑茶、白茶、绿茶、乌龙茶、红茶、黄茶、花茶、再加工茶）
     */
    private String type;
    /**
     * 产地
     */
    private String address;
    /**
     * 价格
     */
    private BigDecimal price;
    /**
     * 保质天数（1年、2年、3年、长期存放、其它）
     */
    private Integer expiryDay;
    /**
     * 购买链接
     */
    private String shopUrl;
    /**
     * 茶叶详情（HTML）
     */
    private String details;
    /**
     * 工艺（全发酵、半发酵、轻微发酵、不发酵）
     */
    private String technology;
    /**
     * 包装净重（100g，200g，300g，500g，其它）
     */
    private Integer weight;
    /**
     * 存储方法（密封、遮光、干燥、无异味、冷藏、其它）多选
     */
    private String storageMethod;
    /**
     * 包装种类（盒装、罐装）
     */
    private String packingType;
    /**
     * 包装方式(压饼、散茶)
     */
    private String packingMethod;
    /**
     * 生产日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date productionDate;
    /**
     * 包装时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date packingDate;
    /**
     * 状态(1正常，2已编，3删除）
     */
    private String status;
    /**
     * 创建者
     */
    private Integer crtUser;
    /**
     * 创建时间
     */
    private Date crtTime;

    /**
     * 更新日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date updateDate;

    /**
     * 加工方法
     */
    private String processMethod;
    /**
     * 功效介绍
     */
    private String effectIntroduce;
    /**
     * 品牌故事
     */
    private String brandIntroduce;
    /**
     * 生产许可
     */
    private String produceLicense;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getBrewsId() {
        return brewsId;
    }

    public void setBrewsId(Integer brewsId) {
        this.brewsId = brewsId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getExpiryDay() {
        return expiryDay;
    }

    public void setExpiryDay(Integer expiryDay) {
        this.expiryDay = expiryDay;
    }

    public String getShopUrl() {
        return shopUrl;
    }

    public void setShopUrl(String shopUrl) {
        this.shopUrl = shopUrl;
    }

    public String getDetails() {
        return details;
    }

    public void setDetails(String details) {
        this.details = details;
    }

    public String getTechnology() {
        return technology;
    }

    public void setTechnology(String technology) {
        this.technology = technology;
    }

    public Integer getWeight() {
        return weight;
    }

    public void setWeight(Integer weight) {
        this.weight = weight;
    }

    public String getStorageMethod() {
        return storageMethod;
    }

    public void setStorageMethod(String storageMethod) {
        this.storageMethod = storageMethod;
    }

    public String getPackingType() {
        return packingType;
    }

    public void setPackingType(String packingType) {
        this.packingType = packingType;
    }

    public String getPackingMethod() {
        return packingMethod;
    }

    public void setPackingMethod(String packingMethod) {
        this.packingMethod = packingMethod;
    }

    public Date getProductionDate() {
        return productionDate;
    }

    public void setProductionDate(Date productionDate) {
        this.productionDate = productionDate;
    }

    public Date getPackingDate() {
        return packingDate;
    }

    public void setPackingDate(Date packingDate) {
        this.packingDate = packingDate;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Integer getCrtUser() {
        return crtUser;
    }

    public void setCrtUser(Integer crtUser) {
        this.crtUser = crtUser;
    }

    public Date getCrtTime() {
        return crtTime;
    }

    public void setCrtTime(Date crtTime) {
        this.crtTime = crtTime;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getProcessMethod() {
        return processMethod;
    }

    public void setProcessMethod(String processMethod) {
        this.processMethod = processMethod;
    }

    public String getEffectIntroduce() {
        return effectIntroduce;
    }

    public void setEffectIntroduce(String effectIntroduce) {
        this.effectIntroduce = effectIntroduce;
    }

    public String getBrandIntroduce() {
        return brandIntroduce;
    }

    public void setBrandIntroduce(String brandIntroduce) {
        this.brandIntroduce = brandIntroduce;
    }

    public String getProduceLicense() {
        return produceLicense;
    }

    public void setProduceLicense(String produceLicense) {
        this.produceLicense = produceLicense;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ZyTea{" +
                "id=" + id +
                ", brewsId=" + brewsId +
                ", code=" + code +
                ", name=" + name +
                ", type=" + type +
                ", address=" + address +
                ", price=" + price +
                ", expiryDay=" + expiryDay +
                ", shopUrl=" + shopUrl +
                ", details=" + details +
                ", technology=" + technology +
                ", weight=" + weight +
                ", storageMethod=" + storageMethod +
                ", packingType=" + packingType +
                ", packingMethod=" + packingMethod +
                ", productionDate=" + productionDate +
                ", packingDate=" + packingDate +
                ", status=" + status +
                ", crtUser=" + crtUser +
                ", crtTime=" + crtTime +
                ", crtTime=" + updateDate +
                ", crtTime=" + brandIntroduce +
                ", crtTime=" + processMethod +
                "}";
    }
}
